﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SAutoArenaRewardMsg extends IMessageBase
    {
        public var hadGet:Boolean;
        public var exp:int;
        public var itemCode:int;
        public var money:Dictionary;
        public const _type:int = 7032;
        public static var _regist:SAutoArenaRewardMsg = new SAutoArenaRewardMsg(true);

        public function SAutoArenaRewardMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SAutoArenaRewardMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.hadGet);
            param1.writeInt(this.exp);
            param1.writeInt(this.itemCode);
            DictIntIntHelper.write(param1, this.money);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.hadGet = param1.readBool();
            this.exp = param1.readInt();
            this.itemCode = param1.readInt();
            this.money = DictIntIntHelper.read(param1);
            return;
        }// end function

    }
}
